//
//  Combination_Cell_TableViewCell.swift
//  Pods
//
//  Created by eme on 2017/4/5.
//
//
/**
 * 查看组合商品TableViewCell
 */
import UIKit
import RickonCore
import BrandonCore

class Combination_Cell_TableViewCell: UITableViewCell {
    
    @IBOutlet weak var goodType: UILabel!
    
    @IBOutlet weak var good_imageView: UIImageView!
    
    @IBOutlet weak var good_NameLabel: UILabel!
    
    @IBOutlet weak var goodStatus_Label: UILabel!
    
    @IBOutlet weak var num_Label: UILabel!
    
    @IBOutlet weak var price_Label: UILabel!
    
    @IBOutlet weak var LineView: UIView!
    
    var item:DataArrModel?{
        didSet{
            if let model = item{
                self.good_NameLabel.text = model.pdname
                self.good_imageView.setUrlImage(model.img1)
                self.goodStatus_Label.text = model.standard
                self.num_Label.text = "x\(model.pdnum)"
                if case AppDataState.audited = AppData.appState{
                    self.price_Label.text = model.shprice.getPriceStr()
                }else{
                    self.price_Label.text = "￥***"
                }
            }
        }
    }

    override func awakeFromNib() {
        super.awakeFromNib()
        self.LineView.backgroundColor = Theme.v.separate_Line
        self.good_NameLabel.normal_fontSize(14)
        self.goodStatus_Label.normal_fontSize(13)
        self.num_Label.normal_fontSize(13)
        self.price_Label.normal_fontSize(16)
    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)
    }

}
